
module.exports = {
  runtimeCompiler: true,
  // resolve: {
  //   alias: {
  //     'vue$': 'vue/dist/vue.esm.js'
  //   },
  //   extensions: ['*', '.js', '.vue', '.json']
  // },
  devServer: {
    open: true,
    port: 9090,
    https: false,
    hotOnly: false,
    proxy: {
      '/api': {  //使用"/api"来代替"http://f.apiplus.c" 
        target: 'http://192.168.1.197:9090', //源地址 
        changeOrigin: true, //改变源 
        pathRewrite: {
          '^/api': '' //路径重写 
        }
      },
    },
  }
}